From a14b0eb5844cda6752aa98ab5509e565b92b17d4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 11 Feb 2011 17:49:13 +0000 Subject: [PATCH] libxc: increase lzma max memory constant to 128Mby According to lzma's configure.ac (!) the minimum memory limit to cope with arbitrary input is 128Mby (!) This is obviously an unreasonable amount of memory for this kind of task, but we need to increase the constant limit for it not to randomly fail. So do so. Signed-off-by: Ian Jackson --- tools/libxc/xc_dom_bzimageloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_dom_bzimageloader.c b/tools/libxc/xc_dom_bzimageloader.c index 1008945caa..d14acbdff7 100644 --- a/tools/libxc/xc_dom_bzimageloader.c +++ b/tools/libxc/xc_dom_bzimageloader.c @@ -152,7 +152,7 @@ static int xc_try_lzma_decode( int outsize; const char *msg; - ret = lzma_alone_decoder(&stream, 32*1024*1024); + ret = lzma_alone_decoder(&stream, 128*1024*1024); if ( ret != LZMA_OK ) { DOMPRINTF("LZMA: Failed to init stream decoder"); -- 2.30.2